home *** CD-ROM | disk | FTP | other *** search
/ Best of www.BestZips.com (Collector's Edition) / Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO / sci_math / kstat414.zip / KSTUTOR.LZH / KSTUTOR.CAI < prev    next >
Text File  |  1997-01-07  |  13KB  |  540 lines

  1. @options escape:thatsall
  2. @mouse
  3. .screen 0
  4. .color 15,3
  5. .cls c=177
  6. .color 15,1
  7. .border (*1,1,25,80*) double
  8. .box (*10,17*) border shadow center
  9.  
  10.                    Welcome!
  11.            To the KWIKSTAT Tutorial!
  12.   ┌───────────────────────────────────────┐
  13.   │  To end the demo, press the Esc key.  │
  14.   └───────────────────────────────────────┘
  15.  
  16.      Press Enter to move to next screen.
  17.  
  18. .endbox
  19. .locate 22,1
  20. .center(*This program was produced using TexaSoft's PC-CAI program.*)
  21. .locate 23,1
  22. .center(*(c)Copyright TexaSoft, 1984-1994.*)
  23. .locate 25,58
  24. .pause (*Continue=Enter Stop=Esc*)
  25. .rem @goto:skipprint
  26. .screen 0
  27. @MONITOR(*9:BEGIN*)
  28. .rem check monitor, if okay, go to begin. If not display message
  29. .cls c=177
  30. .color 15,1
  31. .box (*10,2*) border center
  32.  
  33.                              Special Note
  34.  
  35. This program requires that you have a EGA or VGA compatible monitor.
  36. If you are not using a compatible monitor, press the ESC key at this
  37. time. Otherwise, press ENTER to begin the tutorial.
  38.  
  39. .endbox
  40. .locate 25,58
  41. .pause (*Continue=Enter Stop=Esc*)
  42. @label:begin
  43. .screen 0
  44. .color 15,3
  45. .cls c=177
  46. .color 15,1
  47. .locate 2,1
  48. .center(*Let's see how to CREATE A BAR CHART.*)
  49. .box (*4,1*) border center
  50. EXAMPLE 1: Suppose you created three electromagnets made of three
  51. different kinds of wire -- Small, Medium and Large gauge.
  52. You tested each magnet to see how many nails it would pick up.
  53. You want a BAR CHART to show your results.
  54.  
  55.     YOUR  DATA IS...
  56.  ─────────────────────     ┌───────────────────────────────────────┐
  57.   MAGNET      NAILS        │  1─2─3 steps to CREATE a BAR CHART:   │
  58.  ──────────   ────────     │ ───────────────────────────────────── │
  59.   SMALL         31         │  1. Create a NEW database             │
  60.   MEDIUM        38         │  2. Enter the data                    │
  61.   LARGE         51         │  3. Select the graph to display       │
  62.                            └───────────────────────────────────────┘
  63.  
  64. Let's see how it's done...
  65. .endbox
  66. .color 11,1
  67. .locate 25,58
  68. .pause (*Continue=Enter Stop=Esc*)
  69. .screen 0
  70. .color 15,3
  71. .cls c=177
  72. .color 15,1
  73. .box (*2,28*) border shadow
  74. Creating a Graph is as
  75. simple as 1-2-3!
  76. .endbox
  77. .color 15,5
  78. .play (*MFO1C4*)
  79. .box (*8,10*) border shadow
  80. 1. Create a NEW database
  81. .end box
  82. .color 15,2
  83. .play (*o1E4*)
  84. .box (*13,25*) border shadow
  85. 2. Enter the data into the database
  86. .end box
  87. .color 15,4
  88. .play (*o1F4*)
  89. .box (*18,40*) border shadow
  90. 3. Select the graph to display
  91. .end box
  92. .color 15,1
  93. .locate 25,58
  94. .pause (*Continue=Enter Stop=Esc*)
  95. .color 15,1
  96. .cls
  97. .screen 9
  98. .pcx kstut1 1,1
  99. .box (*5,37*) border shadow
  100.     This is the MAIN MENU screen.
  101.  
  102. The File "pull-down" menu is extended.
  103. .endbox
  104. .wait 2
  105. .box (*12,37*) border shadow
  106. HINT: To choose a menu, use the right-
  107. or left-arrow keys, or point to a menu
  108. name with your mouse pointer and click.
  109. .endbox
  110. .locate 25,58
  111. .pause (*Continue=Enter Stop=Esc*)
  112. .cls
  113. .pcx kstut1 1,1
  114. .box (*12,45*) border shadow
  115.  
  116. STEP 1: Choose New Database.
  117. (Or, choose Open a Database,
  118. if you already have your
  119. data in a database.)
  120.  
  121. .endbox
  122. .locate 25,58
  123. .pause (*Continue=Enter Stop=Esc*)
  124. .cls
  125. .pcx kstut2.pcx 1,1
  126. .box (*16,25*) border shadow
  127. When you choose New Database, you are asked
  128. to enter the name for your new database.
  129. Enter a name, like "MAGNETS", of up to 8
  130. characters. (No blanks in the name.)
  131. .endbox
  132. .locate 25,58
  133. .pause (*Continue=Enter Stop=Esc*)
  134. .cls
  135. .pcx kstut3.pcx 1,1
  136. .box (*12,42*) border shadow
  137.  
  138. Choose the database type from a
  139. list of pre-defined databases, or
  140. you can create a custom database.
  141.  
  142. To create a BAR CHART, choose the
  143. SIMPLE BAR CHART Option.
  144.  
  145. .endbox
  146. .locate 25,58
  147. .pause (*Continue=Enter Stop=Esc*)
  148. .cls
  149. .pcx kstut5.pcx 1,1
  150. .box (*12,25*) border shadow
  151. STEP 2: ENTER DATA - This is where you
  152. enter your results of your experiment --
  153. the data entry screen. Enter the data
  154. for the first magnet as record 1.
  155. .endbox
  156. .locate 25,58
  157. .pause (*Continue=Enter Stop=Esc*)
  158. .box (*12,25*) border shadow
  159. Your first Label is SMALL (small wire)
  160. Your first Value is 31 (number of nails)
  161.  
  162. Type SMALL (press Enter), type 31 (Press
  163. Enter), then...
  164. .endbox
  165. .locate 4,10
  166. (.CHR024)
  167. .locate 5,10
  168. .locate 6,10
  169. .locate 7,10
  170. .locate 8,10
  171. └ Label = Small = The type of magnet
  172. .locate 4,19
  173. (.CHR024)
  174. .locate 5,19
  175. .locate 6,19
  176. └ Value = 31 = The number of nails picked up
  177.  
  178. .locate 25,58
  179. .pause (*Continue=Enter Stop=Esc*)
  180. .cls
  181. .pcx kstut6.pcx 1,1
  182. .box (*12,25*) border shadow
  183. Enter records 2 and 3 -- representing
  184. the three sizes of magnets and number of
  185. nails picked up. Press F7 (Exit) to end
  186. entry....
  187. .endbox
  188. .locate 25,58
  189. .pause (*Continue=Enter Stop=Esc*)
  190. .cls
  191. .pcx kstut9.pcx 1,1
  192. .box (*16,11*) border shadow
  193. STEP 3: CHOOSE WHAT GRAPH TO USE...
  194. The Graph menu is displayed. For this
  195. analysis, choose to display a Bar Graph.
  196. .endbox
  197. .wait 1
  198. .box (*20,40*) border shadow
  199. This is the resulting graph...
  200. .endbox
  201. .locate 25,58
  202. .pause (*Continue=Enter Stop=Esc*)
  203. .screen 9
  204. .cls
  205. .PCX kstut11.PCX 1,1
  206. .locate 25,58
  207. .pause (*Continue=Enter Stop=Esc*)
  208. .screen 9
  209. .cls
  210. .PCX kstut12.PCX 1,1
  211. .locate 3,5
  212. (.CHR024)
  213. .locate 4,5
  214. .locate 5,5
  215. .locate 6,5
  216. .locate 7,5
  217. .locate 8,5
  218. └────────────────────
  219. .box (*7,25*) border shadow
  220. NOTE: Using the menu at the top of
  221. the screen, you can change colors,
  222. patterns, titles, etc. for each graph.
  223.  
  224. These graphs are in EGA mode. If you use
  225. VGA mode, you will have more color choices.
  226.  
  227. Following are some more graph examples...
  228. .endbox
  229. .locate 25,58
  230. .pause (*Continue=Enter Stop=Esc*)
  231. .cls
  232. .PCX kstut13.PCX 1,1
  233. .locate 25,58
  234. .pause (*Continue=Enter Stop=Esc*)
  235. .cls
  236. .PCX kstut14.PCX 1,1
  237. .locate 25,58
  238. .pause (*Continue=Enter Stop=Esc*)
  239. .cls
  240. .PCX kstut15.PCX 1,1
  241. .locate 25,58
  242. .pause (*Continue=Enter Stop=Esc*)
  243. .screen 9
  244. .color 15,4
  245. .cls
  246.  
  247. .cen(*R E M E M B E R*)
  248.  
  249. .cen(*Creating a Graph is as*)
  250. .cen(*simple as 1-2-3!*)
  251. .line (1,90)-(635,90)
  252. .line (1,90)-(1,320)
  253. .line (1,320)-(635,320)
  254. .line (635,90)-(635,320)
  255. .line (1,320)-(320,90)
  256. .line (320,90)-(635,320)
  257. .paint center=(2,99) color=2 bound=15
  258. .paint center=(450,99) color=3 bound=15
  259. .paint center=(200,300) color=1 bound=15
  260. .locate 10,10
  261. 1. Create a
  262. .locate 11,10
  263.    new database.
  264. .locate 10,58
  265. 2. Enter the
  266. .locate 11,58
  267.    data.
  268. .locate 14,35
  269. 3. Select
  270. .locate 16,33
  271. the graph type
  272. .locate 18,31
  273. you want to create.
  274. .locate 25,58
  275. .pause (*Continue=Enter Stop=Esc*)
  276. @LABEL:ENDING
  277. .screen 0
  278. .color 15,3
  279. .cls c=177
  280. .color 15,1
  281. .box (*2,2*) border shadow center
  282.  
  283. KWIKSTAT allows you to create these kinds of graphs:
  284.  
  285.     o Bar Chart, Pie Chart, Line Chart, Area Chart
  286.     o Histogram, Box and Whiskers, Normal Curve
  287.     o Cumulative Distribution, Stem and Leaf Plot
  288.     o X-Y Scatterplot, up to 10 groups
  289.     o Time Series Plot, up to 10 overlayed
  290.     o By Group Plots, and more
  291.  
  292. To make data entry easy, KWIKSTAT creates and reads data in
  293. the standard dBASE format.
  294. .endbox
  295. .locate 25,58
  296. .pause (*Continue=Enter Stop=Esc*)
  297. @label:test
  298. .color 15,3
  299. .cls c=177
  300. .color 15,1
  301. .play (*o1a16*)
  302. .box (*8,5*) border shadow center
  303.  
  304. Do you want to print out a one page summary of how to perform
  305. the bar chart example?
  306.  
  307. (Make sure your printer is on-line and has paper.)
  308.  
  309. .endbox
  310. .color 15,1
  311. @begin
  312. .locate 20,28
  313. @read (*Please answer Y or N:*)
  314. @right (*Y*) keyword
  315. @END QUESTION
  316. @if wrong then :skipprint
  317. .color 15,3
  318. .cls c=177
  319. .color 15,1
  320. .box (*5,5*) border shadow center
  321.  
  322.   Printing in progress...
  323.  
  324.   After the tutorial summary finishes printing --
  325.  
  326.   Go over the tutorial step by step and create the barchart
  327.   described in this tutorial.
  328.  
  329.   Create this sample bar chart BEFORE entering your own data.
  330.   This will help you understand better how to use the program
  331.   for creating charts for your own data.
  332. .end box
  333. .locate 22,10
  334. @shell(*if exist KStutor.tut copy KStutor.tut prn*)
  335. .locate 25,58
  336. .pause (*Continue=Enter Stop=Esc*)
  337.  
  338. @label:skipprint
  339. .screen 0
  340. .color 15,3
  341. .cls c=177
  342. .color 15,1
  343. .locate 2,1
  344. .center(*Let's see how to Compare Two Independent Groups.*)
  345. .box (*4,1*) border center
  346. EXAMPLE 2: Suppose you are comparing two fertilizers. You randomly
  347. assign 13 plants to fertilizer 1 or 2. You want to know if there is
  348. a difference in the mean heights of plants for the two groups.
  349. The test you will use will be an independent group t-test.
  350.  
  351.   Fert. 1      Fert. 2     ┌───────────────────────────────────────┐
  352.     46.2        51.3       │  1─2─3 steps to do this t-test:       │
  353.     55.6        52.4       │ ───────────────────────────────────── │
  354.     53.3        54.6       │  1. Create a NEW database             │
  355.     44.8        52.2       │  2. Enter the data                    │
  356.     55.4        64.3       │  3. Select the analysis to perform.   │
  357.     56.0        55.0       └───────────────────────────────────────┘
  358.     48.9
  359.  
  360. Let's see how it's done...
  361. .endbox
  362. .color 11,1
  363. .locate 25,58
  364. .pause (*Continue=Enter Stop=Esc*)
  365. .color 15,1
  366. .cls
  367. .screen 9
  368. .pcx kstut1 1,1
  369. .box (*5,37*) border shadow
  370.     This is the MAIN MENU screen.
  371.  
  372. The File "pull-down" menu is extended.
  373. .endbox
  374. .box (*12,37*) border shadow
  375. HINT: To choose a menu, use the right-
  376. or left-arrow keys, or point to a menu
  377. name with your mouse pointer and click.
  378. .endbox
  379. .locate 25,58
  380. .pause (*Continue=Enter Stop=Esc*)
  381. .cls
  382. .pcx kstut1 1,1
  383. .box (*12,45*) border shadow
  384.  
  385. STEP 1: Choose New Database.
  386. (Or, choose Open a Database,
  387. if you already have your
  388. data in a database.)
  389.  
  390. .endbox
  391. .locate 25,58
  392. .pause (*Continue=Enter Stop=Esc*)
  393. .cls
  394. .pcx kstut2a.pcx 1,1
  395. .box (*16,25*) border shadow
  396. When you choose New Database, you are asked
  397. to enter the name for your new database.
  398. For this example, enter "PLANTS", or any
  399. name up to 8 characters. (No blanks.)
  400. .endbox
  401. .locate 25,58
  402. .pause (*Continue=Enter Stop=Esc*)
  403. .cls
  404. .pcx kstut3a.pcx 1,1
  405. .box (*3,42*) border shadow
  406.  
  407. Choose the database type from a
  408. list of pre-defined databases, or
  409. you can create a custom database.
  410. To perform an independent group
  411. t-test, choose the Independent
  412. Group t-test option.
  413.  
  414. .endbox
  415. .locate 25,58
  416. .pause (*Continue=Enter Stop=Esc*)
  417. .cls
  418. .pcx kstut4a.pcx 1,1
  419. .box (*5,30*) border shadow
  420. STEP 2: ENTER DATA - This is where you
  421. enter your results of your experiment --
  422. the data entry screen. Enter the data
  423. as shown here.
  424.  
  425. Notice that the GROUP field contains a
  426. code specifying a group identifier
  427. for each plant (observation).
  428.  
  429. The OBS field contains the height of
  430. each plant.
  431.  
  432. Select F7/Exit when you have finished
  433. entering all of the data.
  434. .endbox
  435. .locate 25,58
  436. .pause (*Continue=Enter Stop=Esc*)
  437. .cls
  438. .pcx kstut5a.pcx 1,1
  439. .box (*14,11*) border shadow
  440. STEP 3: SELECT THE ANALYSIS TYPE
  441. From the ANALYZE menu, choose the
  442. analysis module for the type of
  443. analysis you want to perform.
  444.  
  445. In this case, choose the
  446. "t-tests..." option.
  447. .endbox
  448. .locate 25,58
  449. .pause (*Continue=Enter Stop=Esc*)
  450. .cls
  451. .pcx kstut6a.pcx 1,1
  452. .box (*14,30*) border shadow
  453. The T-test... module menu appears.
  454. From this menu, choose the
  455. analysis you want to perform.
  456.  
  457. In this case, choose the option
  458. "Compare independent groups (t-test...)"
  459. .endbox
  460. .locate 25,58
  461. .pause (*Continue=Enter Stop=Esc*)
  462. .cls
  463. .pcx kstut7a.pcx 1,1
  464. .box (*14,20*) border shadow
  465. You will be prompted to select a
  466. "Grouping" variable and a "Data"
  467. variable. In this case GROUP is the
  468. Grouping variable and OBS is the
  469. data variable.
  470. .endbox
  471. .locate 25,58
  472. .pause (*Continue=Enter Stop=Esc*)
  473. .cls
  474. .pcx kstut7ab.pcx 1,1
  475. .box (*3,40*) border shadow
  476. Once you choose the variables to
  477. use, the analysis will be performed,
  478. and you can choose to view the
  479. calculated results or display a
  480. graphical comparison.
  481. .endbox
  482. .locate 25,58
  483. .pause (*Continue=Enter Stop=Esc*)
  484. .cls
  485. .pcx kstut8a.pcx 1,1
  486. .box (*4,39*) border shadow
  487. The calculated results are displayed
  488. in the KWIKSTAT viewer. In the viewer
  489. you can press F10/Outpt to print the
  490. results, or press F7/Exit to exit.
  491. .endbox
  492. .locate 24,58
  493. .pause (*Continue=Enter Stop=Esc*)
  494. .cls
  495. .pcx kstut9a.pcx 1,1
  496. .box (*11,34*) border
  497. The graphical comparison shows
  498. differences in the groups using the
  499. mean +/- one standard error of the
  500. mean (SEM). Choose <options> for
  501. other comparison types.
  502. .endbox
  503. .locate 24,58
  504. .pause (*Continue=Enter Stop=Esc*)
  505. .rem ..........finish up the tutorial
  506. .color 15,3
  507. .cls c=177
  508. .color 15,1
  509. .box (*10,5*) border shadow center
  510.  
  511.                 Run through the tutorial again?
  512.  
  513.      This is the end of the tutorial, you have two choices:
  514.  
  515.      1. Answer Y (Yes) to go through the tutorial again
  516.  
  517.      2. Answer N (No) to end the tutorial
  518.  
  519. .endbox
  520. @begin
  521. .locate 22,10
  522. @read (*Please answer Y or N:*)
  523. @right (*Y*) keyword
  524. @WRONG
  525. @END QUESTION
  526. @if wrong then :thatsall
  527. @goback:begin
  528. @label:thatsall
  529. .screen 0
  530. .cls
  531. @stop system
  532.